repo: Fix incorrect use of errno() error throwing
authorColin Walters <walters@verbum.org>
Tue, 25 Apr 2017 21:27:32 +0000 (17:27 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 26 Apr 2017 13:27:16 +0000 (13:27 +0000)
I happened to glance at the top of my most recent patch and
noticed that I used an `throw_errno()` function in a non-errno place.
I scanned the patch for other instances of this but didn't find one.

Closes: #811
Approved by: jlebon

src/libostree/ostree-repo.c

index 5a2d94f2127ddb76d614a047c441fa5589b167f9..ec2d8c832c6d13ed9b36d7c1f5e17f5984ad81d7 100644 (file)
@@ -2631,7 +2631,7 @@ query_info_for_bare_content_object (OstreeRepo      *self,
         return FALSE;
     }
   else
-    return glnx_throw_errno_prefix (error, "Not a regular file or symlink: %s", loose_path_buf);
+    return glnx_throw (error, "Not a regular file or symlink: %s", loose_path_buf);
 
   ot_transfer_out_value (out_info, &ret_info);
   return TRUE;